<div ng-controller="bpmHistoryProcessController" >
    <div class="bg-light lter b-b wrapper-md">
        <h1 class="m-n font-thin h3">已归档流程实例</h1>
    </div>
    <div class="panel panel-default m-b-none">
  		<div class="panel-body">
  			<form class="form-inline" role="form">
				<div class="form-group">
					<input class="form-control" placeholder="流程实例ID"  ng-model="params.processInstanceId.term">
				</div>
				<div class="form-group">
					<button type="button" class="btn btn-default form-control" ng-click="Table1.load()">查询</button>
				</div>
				<div class="form-group">
					<button type="button" class="btn btn-default form-control" ng-click="Table1.reset()">清空</button>
				</div>
			</form>
  		</div>
  	</div>
	<div class="wrapper-md no-padder">
		<div class="panel panel-default">
			<table class="table m-b-none" app-footable data-page="false" data-filter-text-only="true">
				<thead>
					<tr>
						<th data-sort-name="processInstanceId">流程实例ID</th>
						<th data-sort-ignore="true">所属流程</th>
						<th data-sort-name="processDefinitionId">流程定义ID</th>
						<th data-sort-name="startTime">启动时间</th>
						<th data-sort-name="startUserId">流程启动人</th>
						<th data-sort-name="endTime">结束时间</th>
						<th data-sort-name="superProcessInstanceId">父流程ID</th>
						<th data-sort-name="deleteReason">结束原因</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="r in Table1.page.rows">
						<td>
							<a app-auth ui-sref="app.bpm.history.finsh.view({processInstanceId:r.processInstanceId })" ng-bind="r.processInstanceId"></a>
						</td>
						<td ng-bind="r.processDefinitionId | bpmManagerProcessDefinitionFilter : 'name'"></td>
						<td ng-bind="r.processDefinitionId"></td>
						<td ng-bind="r.startTime"></td>
						<td ng-bind="r.startUserId"></td>
						<td ng-bind="r.endTime"></td>
						<td ng-bind="r.superProcessInstanceId">
							<a app-auth ui-sref="app.bpm.history.finsh.view({processInstanceId:r.superProcessInstanceId })" ng-bind="r.superProcessInstanceId"></a>
						</td>
						<td ng-bind="r.deleteReason"></td>
					</tr>
				</tbody>
				<tfoot>
					<tr>
						<td colspan="7" class="text-center">
							<div app-pagination="Table1"></div>
						</td>
					</tr>
				</tfoot>
			</table>
		</div>
	</div>
</div>